package com.fdb.efp.nls.service.dao;

import com.fdb.efp.nls.service.domain.PrdSoltRule;
import com.fdb.efp.nls.service.vo.PrdSoltRuleVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 产品规则插槽参数
 * 
 * @author huangwb
 * @since 2018年12月26日 下午7:50:52
 * @version 1.0
 */
public interface PrdSoltRuleDao {
	public int insertPrdSoltRule(PrdSoltRule prdSoltRule);

	public int deleteByPk(PrdSoltRule prdSoltRule);

	public int updateByPk(PrdSoltRule prdSoltRule);

	public PrdSoltRule queryByPk(PrdSoltRule prdSoltRule);

	public List<PrdSoltRule> queryAllOwnerByPage(PrdSoltRuleVO prdSoltRule);

	public List<PrdSoltRule> queryAllCurrOrgByPage(PrdSoltRuleVO prdSoltRule);

	public List<PrdSoltRule> queryAllCurrDownOrgByPage(PrdSoltRuleVO prdSoltRule);
	
	public List<PrdSoltRule> queryByPrdIdAndSoltCode(@Param("prdId") String prdId,
                                                     @Param("soltCode") String soltCode);
	
	/**
	  * 分页查询列表数据（不做数据权限控制）
	  * @param prdSoltRule
	  * @return
	  * @author qiuyf
	  * @since 2019年2月18日 下午4:56:04
	  * @version 1.0
	 */
	public List<PrdSoltRule> queryPrdSoltRuleByPage(PrdSoltRuleVO prdSoltRule);

}
